﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;
using System.Threading;

namespace EtlComm
{
    /// <summary>
    /// 加油站任务规则参数
    /// </summary>
    [Serializable]
    [DebuggerDisplay("StationID={StationID},{StationName}")]
    public class StationInfo
    {
        /// <summary>
        /// 加油站ID
        /// </summary>
        public string StationID { set; get; }
        /// <summary>
        /// 加油站名称
        /// </summary>
        public string StationName { set; get; }
        /// <summary>
        /// 任务时间间隔(单位：分钟)
        /// </summary>
        public uint Interval { set; get; }
        /// <summary>
        /// 是否启用
        /// </summary>
        public bool IsActive { set; get; }
        /// <summary>
        /// 加油站ib数据库IP
        /// </summary>
        public string InterBaseIP { get; set; }
        /// <summary>
        /// 加油站MySQL数据库IP
        /// </summary>
        public string MySQLIP { get; set; }
        /// <summary>
        /// 加油站MsSQL数据库IP
        /// </summary>
        public string MSSQLIP { get; set; }
        /// <summary>
        /// 加载目标数据库IP
        /// </summary>
        public string DestIP { set; get; }
        /// <summary>
        /// 当前加油站被调度的次数
        /// </summary>
        public uint SwitchesTimes { get; set; }
        /// <summary>
        /// 优先级
        /// </summary>
        public uint Priority { get; set; }
        /// <summary>
        /// 执行该加油站的线程信息
        /// </summary>
        public Thread ThreadInfo { get; set; }
    }
}
